home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_fxforge1.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
3KB
|
83 lines
/* Setup Arexx program for AutoFX and FXForge
EOT_FXForge1.ifx.pre
Programmed by K. Barkley Dec 1997
These scripts are set up so that the script can be called multiple times in the
same AutoFX session without colliding. I have set it up for 2, but the scheme can be
easily extended to any number, by changing the number of the INSTANCE variable and
renaming the script accordingly.
Inputs:
Word(Arg(1),1) = Sequence Number
Word(Arg(1),1) = Total Number of Frames
Outputs:
0 if successful, non-zero on failure
*/
OPTIONS RESULTS
/* change this variable to create a new unique script */
instance = 1
rc = 0
base = 'AutoFx_FXFld' || instance || '_'
/* set up the path and initial file */
lpath = GETCLIP(base || 'Path')
lfile = GETCLIP(base || 'File')
if lpath = "" THEN lpath = "Storage/FXForge"
DO i = 0 TO 7
ctemp = GETCLIP(base||'Ctl'||i)
IF ctemp = "" THEN control.i = 0
ELSE control.i = ctemp
ctemp = GETCLIP(base|| 'Stp' || i)
IF ctemp = "" THEN step.i = 0
ELSE step.i = ctemp
END i
/* get the user inputs */
gadget.1 = 'STRING 150 4 260 14 "Load File:"' lfile
gadget.2 = 'FILEREQ 412 4 20 14 "Load File:"' lpath '#?' lfile 'AT = 1'
gadget.3 = 'INTEGER 150 18 100 10 "Control 0 Start:"' control.0
gadget.4 = 'INTEGER 310 18 100 10 "Step:"' step.0
gadget.5 = 'INTEGER 150 33 100 10 "Control 1 Start:"' control.1
gadget.6 = 'INTEGER 310 33 100 10 "Step:"' step.1
gadget.7 = 'INTEGER 150 48 100 10 "Control 2 Start:"' control.2
gadget.8 = 'INTEGER 310 48 100 10 "Step:"' step.2
gadget.9 = 'INTEGER 150 63 100 10 "Control 3 Start:"' control.3
gadget.10= 'INTEGER 310 63 100 10 "Step:"' step.3
gadget.11= 'INTEGER 150 78 100 10 "Control 4 Start:"' control.4
gadget.12= 'INTEGER 310 78 100 10 "Step:"' step.4
gadget.13= 'INTEGER 150 93 100 10 "Control 5 Start:"' control.5
gadget.14= 'INTEGER 310 93 100 10 "Step:"' step.5
gadget.15= 'INTEGER 150 109 100 10 "Control 6 Start:"' control.6
gadget.16= 'INTEGER 310 109 100 10 "Step:"' step.6
gadget.17= 'INTEGER 150 123 100 10 "Control 7 Start:"' control.7
gadget.18= 'INTEGER 310 123 100 10 "Step:"' step.7
gadget.19= 'END'
NewComplexRequest '"FXForge AutoFX Setup"' gadget 450 160
IF rc ~= 0 THEN EXIT rc
/* set up the variables */
CALL SETCLIP(base || 'Path', result.2.path)
CALL SETCLIP(base || 'File', result.2.file)
DO i = 0 TO 7
ctlidx = 2 * i + 3
stpidx = 2 * i + 3 + 1
CALL SETCLIP(base|| 'Ctl' || i , result.ctlidx)
CALL SETCLIP(base|| 'Stp' || i , result.stpidx)
END i
EXIT rc